﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace DBSchemaViewer.FrontEnd.DiagramUserControls.CustomEvents
{
    /// <summary>
    /// Silverlight Alfa and Beta 1 bubbled up events from child to parent controls, things has changed on Beta 2
    /// now only basic shapes bubble up events :-(, it seems that is the standard behaviour in WPF. Maybe things will
    /// change in the final release (won't be a bad idea to have a param can bubble up), but in the mean time
    /// we will have to createa custom event to propagate left button down / up and mouse move events to parent windows
    /// (e.g. from the entitytable blue header, drag operation to the main diagram canvas, or relations drag and drop).
    /// </summary>    
    public class RelationCtlMouseOperationBubblingArgs
    {
        public Point mousePosition { get; private set; }

            /// <summary>
            /// Right now we only need the mouse position. In the future add more properties if needed            
            /// </summary>
            /// <param name="theMousePosition"></param>
            /// <param name="theMouseCommand"></param>
            /// <param name="fieldID"></param>
        public RelationCtlMouseOperationBubblingArgs(Point theMousePosition)
        {
            this.mousePosition = theMousePosition;
        }

    }
}
